package com.app.bussinesslocator;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class SplashScreenActivity extends Activity {

	Runnable r = new Runnable() {
		
		@Override
		public void run() {
			gotoMain();
		}
	};
	
	Handler mHandler = new Handler();
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash_screen);
		
		mHandler.postDelayed(r, 2000);
		
	}

	void gotoMain() {
		Intent t = new Intent(SplashScreenActivity.this, MainActivity.class);
		finish();
		startActivity(t);
	}

}
